#include<stdio.h>
int main (){
	int A[51900];
	int num,i=0,key,large=0;
	while(scanf("%d",&num)==1){
		if(i>large)
			large=i;
		i=0;
		while(num!=0){
			key=num%10;
			if(A[i]+key>=10){
				A[i]=(A[i]+key)%10;
				A[i+1]++;
				}
			else
			A[i]+=key;
			num=num/10;
			i++;
		}
			
	}
	for(i=large;i>=0;i--){
		printf("%d",A[i]);
	} 
	return 0;
}
	

